// 引入Vue, Vuex需要使用Vue
import Vue from "vue"
import Vuex from "vuex"

Vue.use(Vuex)

const actions = {}

const mutations = {}

const state = {
    isLogin: sessionStorage.getItem("isLogin"),

    // 关注好友动态列表
    friendUpdatesList: sessionStorage.getItem("friendUpdatesList"),

    home: {
        count: sessionStorage.getItem("home:count")
    }
}
export default new Vuex.Store({actions, mutations, state})